package cn.wolfcode.shopclientwebsite.controller;

import cn.wolfcode.goods.domain.Product;
import cn.wolfcode.goods.service.IProductService;
import com.alibaba.dubbo.config.annotation.Reference;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.List;

@Controller
public class ProductController {

    @Reference
    private IProductService productService;

   @ResponseBody
   @RequestMapping("test")
    public List<Product> test(){
       return  productService.test();
   }

}
